package application.controller;

import application.anno.Group;
import application.windows.UserInterface;
import application.anno.IconName;
import application.anno.Layout;
import application.anno.StageTitle;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.HBox;
import lombok.SneakyThrows;

@Layout("NextLayout.fxml")
@StageTitle("二级测试窗口")
@IconName("l2_test.jpg")
public class NextLayout extends UserInterface {

    @FXML
    private Label back;

    @FXML
    private HBox demonstration;

    @SneakyThrows
    @FXML
    protected void initialize() {
        super.initialize();
        back.setOnMouseClicked(new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent event) {
                end();
            }
        });
    }
}
